package com.dongdongshop.dao.goods_jpa;

import com.dongdongshop.pojo.goods.TbGoods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;


import java.util.List;
public interface GoodsJpaDao extends JpaRepository<TbGoods,Long>, JpaSpecificationExecutor<TbGoods> {
    public List<TbGoods> findAllByAuditStatus(String auditStatus);
    @Query(value = "from TbGoods where id = ?1")
    TbGoods getGoodsbyId(Long id);
}
